package com.lastproject.ejb.dao;

import java.util.List;

import javax.ejb.Remote;

import com.lastproject.dto.CandidateDTO;

@Remote
public interface CandidateDAORemote {

	void create(CandidateDTO candidateDTO);

	void edit(CandidateDTO candidateDTO);

	void remove(CandidateDTO candidateDTO);

	CandidateDTO findById(int id);

	List<CandidateDTO> getAll();
	
	public byte[] findCv(int id);

	CandidateDTO findByFullName(String firstname, String lastname);
	
	CandidateDTO checkIfExists(String firstname, String lastname, String email);
	

}
